@model LastoRevival.Service.Contracts.Models.MessageThread
@using LastoRevival.Service.Contracts.Models;

@{
	
	if (ViewBag.Level == null)
	{
		ViewBag.Level = 1;	
	}
}

<div class="post child level-@ViewBag.Level">
	
	@Html.Partial("MessagePreview")	


@{ViewBag.Level++;}

@foreach (var child in Model.ChildPosts)
{
	@Html.Partial("Thread", child);
}

@{ViewBag.Level--;}

</div>
